Xbasic

INET::Socket::ReadLine Method

Syntax

Result_Flag as L = ReadLine(Data BYREF as C[, Timeout as N = -1])

Arguments

Result_Flag

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Data

The data received from the connection.

Timeout

The time (in milliseconds) to wait for a complete line of data to be received.

Description

The INET::Socket::ReadLine() method reads a line from the receive buffer. A line is terminated by a carriage-return and a line feed. If nothing is available, the method returns an empty string.

See Also